/*
 * @Author: huang yuanfa
 * @Date: 2022-10-13 21:39:44
 * @LastEditTime: 2022-10-13 21:40:41
 * @LastEditors: huang yuanfa
 * Copyright 2022 huang yuanfa All Rights Reserved.
 * @Gitee: https://gitee.com/huangyuanfa
 * @Github: https://github.com/hyf888
 * @FilePath: /src/Basic/HBasicDefine.h
 * @Description: file content
 */
#ifndef __HDEFINE_H__
#define __HDEFINE_H__

#include <cstddef>

// 定义宏的优点可以随时更换namespace名字，可以取消成为匿名
#define HTHREADPOOL_SPACENAME HTP
#define NAMESPACE_ERR ERR
#define HTHREADPOOL_NAMESPACE_ERR HTHREADPOOL_SPACENAME::NAMESPACE_ERR

#define HTHREADPOOL_NAMESPACE_BEGIN namespace HTHREADPOOL_SPACENAME {

#define HTHREADPOOL_NAMESPACE_END }

#define HTHREADPOOL_NAMESPACE_ERR_BEGIN                                                                                \
    namespace HTHREADPOOL_SPACENAME {                                                                                  \
    namespace NAMESPACE_ERR {

#define HTHREADPOOL_NAMESPACE_ERR_END                                                                                  \
    }                                                                                                                  \
    }

// 处理中文乱码使用
#if defined(_MSC_VER) && (_MSC_VER >= 1600)
#pragma execution_character_set("utf-8")
#endif

#endif
